﻿/*-------------------------------------------------------------------------
* 命名空间: XrayDirection.Models/DeviceState
* 类       名: DeviceState
* 功      能:  TD
* 时      间:  2024/1/5 16:39:18
* 版      本:  V1.0
* 作      者:  Fioman
* 格      言:  Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
using Prism.Mvvm;

namespace XrayDirection.Models
{
    public class DeviceState : BindableBase
    {
        /// <summary>
        /// 设备名称
        /// </summary>
        public string? DeviceName { get; set; }
        /// <summary>
        /// 设备IP地址
        /// </summary>
        public string? DeviceIp { get; set; }
        /// <summary>
        /// 连接端口号
        /// </summary>
        public int DevicePort { get; set; }
        /// <summary>
        /// 是否在线,前台需要转换,默认是不在线的.
        /// </summary>
        private bool isOnline = false;

        public bool IsOnline
        {
            get { return isOnline; }
            set
            {
                isOnline = value;
                RaisePropertyChanged();
            }
        }
    }
}
